package com.aidem.onecartoon.modules.article.entity;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 文章表
 * @author aosun 2020-04-30
 */
@TableName("ARTICLE")
public class Article implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 自增主键
     */
    private String id;

    /**
     * 标题
     */
    private String title;

    /**
     * 修改时间
     */
    private Date modifyrq;

    /**
     * 发布时间
     */
    private Date publishTime;

    /**
     * 内容
     */
    private String info;

    /**
     * 浏览数
     */
    private BigDecimal views;

    /**
     * 分类
     */
    private String typeId;

    /**
     * 是否私密
     */
    private String isPrivate;

    /**
     * 状态：0 暂存 1发布
     */
    private String state;

    /**
     * 去除掉h5标签的内容
     */
    private String infoText;

    /**
     * 目录结构（code|name@code|name...）
     */
    private String menuInfo;

    /**
     * 分类
     */
    @TableField(exist = false)
    private String type;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public Date getModifyrq() {
        return modifyrq;
    }

    public void setModifyrq(Date modifyrq) {
        this.modifyrq = modifyrq;
    }

    public String getInfo() {
        return info;
    }

    public void setInfo(String info) {
        this.info = info;
    }

    public BigDecimal getViews() {
        return views;
    }

    public void setViews(BigDecimal views) {
        this.views = views;
    }

    public String getTypeId() {
        return typeId;
    }

    public void setTypeId(String typeId) {
        this.typeId = typeId;
    }

    public String getIsPrivate() {
        return isPrivate;
    }

    public void setIsPrivate(String isPrivate) {
        this.isPrivate = isPrivate;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public String getInfoText() {
        return infoText;
    }

    public void setInfoText(String infoText) {
        this.infoText = infoText;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public Date getPublishTime() {
        return publishTime;
    }

    public void setPublishTime(Date publishTime) {
        this.publishTime = publishTime;
    }

    public String getMenuInfo() {
        return menuInfo;
    }

    public void setMenuInfo(String menuInfo) {
        this.menuInfo = menuInfo;
    }
}
